﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WeShare.WeiXin.Common;
using WeShare.WeiXin.Mp;

namespace WebForm
{
    /// <summary>
    /// wx 的摘要说明
    /// </summary>
    public class wx : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            var param = new EnterParamConfig
            {
                appid = "wxd7008116979a800d",
                EncodingAESKey = "nKh7i1tBlQoFFp3bBX99e536VsM2tX4fIjjVFqKiKt3",
                token = "weixin",
                wxid = "gh_8d1ff4fd69cd"
            };
            var res = context.Register<MsgHandler>(param);
            context.Response.Write(res);
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}